<template>
  <div>
    <div>
      <span>.number收集以parseFloat转成的数字类型</span>
      <input v-model.number="num" type="text" />
    </div>
    <div>
      <span>.trim去除两边的空格</span><input v-model.trim="num1" type="text" />
    </div>
    <div>
      <span
        >.lazy失去焦点内容改变时(onchange事件),把内容同步给v-model的变量</span
      ><input v-model.lazy="num2" type="text" />
    </div>
    <div></div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      num: "",
      num1: "",
      num2: "",
    };
  },
};
</script>

<style>
</style>